const express = require('express')

const router = express.Router()

const eventHandler = require('../../router_handler/admin/event')

//增加事件
router.post('/admin/event', eventHandler.addEvent)

//更新事件
router.put('/admin/event', eventHandler.updateEvent)

//删除事件
router.delete('/admin/event/:id', eventHandler.delEvent)

//获取事件列表
router.get('/admin/event', eventHandler.getEventList)

//根据id获取事件
router.get('/admin/event/:id', eventHandler.getEvent)

module.exports = router